<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="fireflow" uri="/fireflow-tags" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body scroll="no">
<%
String contextPath=request.getContextPath();
String processId=request.getParameter("processId");
%>
<SCRIPT LANGUAGE="JavaScript">
	/**
	 * 环节双击事件，响应流程跟踪器的环节双击事件，
	 * 函数名称须为onActivityDoubleClick，由flex调用，传入选中环节对象，
	 * 该对象包含4个属性 id,sn,name,displayName
	 * 使用方法如下
	 */
    function onActivityDoubleClick(activity) {
        alert("环节： " + "\n" 
        		+"id[ "+ activity.id + " ]\n" 
        		+ "sn[ " + activity.sn + " ]\n" 
        		+ "name[ " + activity.name + " ]\n" 
        		+ "displayName[ " + activity.displayName + " ]\n" );
    }
    /**
	 * 任务双击事件，响应流程跟踪器的任务双击事件，
	 * 函数名称须为onTaskDoubleClick，由flex调用，传入选中任务实例，
	 * 该对象包含8个属性 id,name,taskId,activityId,state,stepNumber,isSuspended,displayName
	 * 使用方法如下
	 */
    function onTaskDoubleClick(task) {
        alert("任务实例： "+"\n" 
        		+"id[ "+ task.id + " ]\n" 
        		+ "name[ " + task.name + " ]\n" 
        		+ "taskId[ " + task.taskId + " ]\n" 
        		+ "activityId[ " + task.activityId + " ]\n" 
        		+ "state[ " + task.state + "]\n" 
        		+ "stepNumber[ " + task.stepNumber + " ]\n" 
        		+ "isSuspended[ " + task.isSuspended + " ]\n" 
        		+ "displayName[ " + task.displayName + " ]\n" );
    }
</SCRIPT>

<h1>流程查看</h1>

<table width='100%' height='100%' cellspacing='0' cellpadding='0'>
    <tr>
        <td valign='top'>                              
            <fireflow:instanceTrace width="1090" processInstanceId="<%=processId %>"/>
        </td>
    </tr>
</table>


</body>
</html>